#!/usr/bin/env fish
argv=random choice $(fd . ~/Pictures/backgrounds/wallpapers --follow -e jpg -e png)
if [ (hyprctl getoption animations:enabled -j | jq -r ".int") = "1" ]
swww img \
    --transition-type $(random choice grow wave outer) \
    --transition-wave 80,40 \
    --transition-angle $(random choice 45 90 135 225 270 315) \
    --transition-pos $(random choice center top left right bottom top-left top-right bottom-left bottom-right) \
    --transition-step 200 \
    --transition-duration 1.5 \
    --transition-fps 240 \
    "$argv"
else
swww img \
    --transition-type simple \
    --transition-step 255 \
    "$argv"
end